package org.spbsu.apco.common.task.impl;

import org.spbsu.apco.common.task.core.BaseTask;

import java.util.List;

/**
 * User: solozobov
 * Date: 11.11.12
 */

public class AdditionTask extends BaseTask<Integer, Integer> {
    @Override
    public Integer execute(final List<Integer> numbers) throws Exception {
        int accumulator = 0;
        for (final int number : numbers) {
            accumulator += number;
        }
        return accumulator;
    }
}
